<div class="userEditWapper">
	<div class="container" ng-if="ngOpertype==2">
		<i class="glyphicon glyphicon-remove-sign userEditClose" ng-click="closeUserEdit()"></i>
		<i class="glyphicon glyphicon-edit userEditEdit" ng-if="ngOperate.r2==2" ng-click="editUser()"></i>
		<div class="row detailLine">
				<p class="col-xs-4 textl headLab">
					头像
				</p>
				<p class="col-xs-8 textr">
					<span class="userHead"><img ng-src="{{ngModel.AVATAR}}" /></span>
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					用户名
				</p>
				<p class="col-xs-8 textr">
					{{ngModel.USER_NAME}}
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					密码
				</p>
				<p class="col-xs-8 textr">
					******
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					手机号码
				</p>
				<p class="col-xs-8 textr">
					{{ngModel.CELL_PHONE}}
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					姓名
				</p>
				<p class="col-xs-8 textr">
					{{ngModel.REAL_NAME}}
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					角色
				</p>
				<p class="col-xs-8 textr">
					{{ngUserrole.NAME}}
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					登录状态
				</p>
				<p class="col-xs-8 textr">
					<span ng-switch on="ngModel.LOGIN_STATUS">
						<span ng-switch-when="0" class="label label-danger">离线</span>
						<span ng-switch-when="1" class="label label-success">在线</span>
						<span ng-switch-default class="label label-danger">离线</span>
					</span>
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					性别
				</p>
				<p class="col-xs-8 textr">
					<span ng-switch on="ngModel.SEX">
						<span ng-switch-when="0">男</span>
						<span ng-switch-when="1">女</span>
						<span ng-switch-default>未选择</span>
					</span>
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					地址
				</p>
				<p class="col-xs-8 textr">
					{{ngModel.ADDRESS}}
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					出生日期
				</p>
				<p class="col-xs-8 textr">
					{{ngModel.BIRTH_TIME | date:'yyyy-MM-dd'}}
				</p>
		</div>
		<div class="row">
			<p class="removeUserBtn" ng-if="ngOperate.r1==1" ng-click="removeUser()">删除</p>
		</div>
	</div>

	<div class="container" ng-if="ngOpertype==1 || ngOpertype==0">
		<i class="glyphicon glyphicon-remove-sign userEditClose" ng-click="closeUserEdit()"></i>
		<div class="row detailLine">
				<p class="col-xs-4 textl headLab">
					头像
				</p>
				<p class="col-xs-8 textr" style="position:relative;">
					<file-model></file-model>
					<span class="userHead"><img ng-src="{{ngModel.AVATAR}}" /></span>
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					用户名
				</p>
				<p class="col-xs-8 textr">
					<input type="text" class="textIpt w_bb" ng-model="ngModel.USER_NAME" />
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					密码
				</p>
				<p class="col-xs-8 textr">
					<input type="password" class="textIpt w_bb" ng-model="ngModel.PASSWORD" />
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					手机号码
				</p>
				<p class="col-xs-8 textr">
					<input type="text" class="textIpt w_bb" ng-model="ngModel.CELL_PHONE" />
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					姓名
				</p>
				<p class="col-xs-8 textr">
					<input type="text" class="textIpt w_bb" ng-model="ngModel.REAL_NAME" />
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					角色
				</p>
				<p class="col-xs-8 textr">
					<input type="text" id="roleIpt" class="textIpt w_bb" value="{{ngUserrole.NAME}}"/>
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					性别
				</p>
				<p class="col-xs-8 textr">
					<input type="text" id="sexIpt" class="textIpt w_bb" value="{{sexData[ngModel.SEX].NAME}}" />
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					地址
				</p>
				<p class="col-xs-8 textr">
					<input type="text" ng-model="ngModel.ADDRESS" class="textIpt w_bb" id="city-picker"/>
				</p>
		</div>
		<div class="row detailLine">
				<p class="col-xs-4 textl">
					出生日期
				</p>
				<p class="col-xs-8 textr">
					<input type="text" class="textIpt w_bb" id="birthTime" ng-bind="ngModel.BIRTH_TIME" value="{{ngModel.BIRTH_TIME | date:'yyyy-MM-dd'}}"/>
				</p>
		</div>
		<div class="row">
			<p class="saveUserBtn" ng-if="ngOperate.r2==2" ng-click="saveUser()">保存</p>
			<p class="cancelUserBtn" ng-click="cancelEdit()">取消</p>
		</div>
	</div>
</div>